@extends('layout.app')
@section('content')
<ul class="nav nav-tabs">
    <li class="active"><a href="#home" data-toggle="tab">信息</a></li>
</ul>

<div class="row">
    <div class="col-md-4">
        @if($errors->any())
            <ul class="list-group">
                @foreach($errors->all() as $error)
                    <li class="list-group-item list-group-item-danger">{{$error}}</li>
                @endforeach
            </ul>
        @endif
        <br>

        {!! Form::open(['url'=>'admin/'.$modelurl,'id'=>'tab']) !!}
            <div id="myTabContent" class="tab-content">
                <div class="tab-pane active in" id="home">


                    <div class="form-group">
                        {!! Form::label('name','权限字段:') !!}
                        {!! Form::text('name',null,['class'=>'form-control']) !!}
                    </div>

                    <div class="form-group">
                        {!! Form::label('label','描述:') !!}
                        {!! Form::text('label',null,['class'=>'form-control']) !!}
                    </div>





                </div>

            </div>

            <div class="btn-toolbar list-toolbar">
                {!! Form::submit('更新',['class'=>'btn btn-primary ']) !!}
                <a href="/admin/{{$modelurl}}/" data-toggle="modal" class="btn btn-danger">返回</a>
            </div>
            {!! Form::close() !!}
    </div>
</div>

{{--<div class="modal small fade" id="myModal" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true">--}}
    {{--<div class="modal-dialog">--}}
        {{--<div class="modal-content">--}}
            {{--<div class="modal-header">--}}
                {{--<button type="button" class="close" data-dismiss="modal" aria-hidden="true">×</button>--}}
                {{--<h3 id="myModalLabel">Delete Confirmation</h3>--}}
            {{--</div>--}}
            {{--<div class="modal-body">--}}

                {{--<p class="error-text"><i class="fa fa-warning modal-icon"></i>Are you sure you want to delete the user?</p>--}}
            {{--</div>--}}
            {{--<div class="modal-footer">--}}
                {{--<button class="btn btn-default" data-dismiss="modal" aria-hidden="true">Cancel</button>--}}
                {{--<button class="btn btn-danger" data-dismiss="modal">Delete</button>--}}
            {{--</div>--}}
        {{--</div>--}}
    {{--</div>--}}
{{--</div>--}}

    @stop
